package esms.cases;

import org.apache.log4j.Logger;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

import com.thoughtworks.selenium.DefaultSelenium;

import esms.action.ActionFactory;
import esms.action.ActionInterface;

public class LoginXiaoneiCase extends BaseCase{
	protected static Logger log = Logger.getLogger("LoginCase");
	
	/**
	 * Start the browser and login
	 * @param userid
	 * @param password
	 */
	@Test
	@Parameters( { "userid", "password" })
	public void login(String userid, String password) {
		ActionInterface login = ActionFactory.getLoginXiaoneiAction(
				getUrl() , userid, password);
		try{
			Thread.sleep(8000);
		} catch (Exception e) {
        	
        }
		login.execute(getBrowser()); 
	}
}
